﻿using System;
using Microsoft.EntityFrameworkCore;

namespace LtccApi.Models
{
    /// <summary>
    /// Ltcc context.
    /// </summary>
    public class LtccContext : DbContext
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="T:LtccApi.Models.LtccContext"/> class.
        /// </summary>
        /// <param name="options">Options.</param>
        public LtccContext(DbContextOptions<LtccContext> options) : base(options)
        {

        }
        /// <summary>
        /// Gets or sets the car brands.
        /// </summary>
        /// <value>The car brands.</value>
        public DbSet<CarBrand> CarBrands { get; set; }
        /// <summary>
        /// Gets or sets the car types.
        /// </summary>
        /// <value>The car types.</value>
        public DbSet<CarType> CarTypes { get; set; }
        /// <summary>
        /// Gets or sets the car tires.
        /// </summary>
        /// <value>The car tires.</value>
        public DbSet<CarTireSize> CarTireSizes { get; set; }

        /// <summary>
        /// 轮胎规格对应的三列数据
        /// </summary>
        public DbSet<TireSizeSearch> TireSizeSearchs { get; set; }

        /// <summary>
        /// 卡车轮胎列表
        /// </summary>
        public DbSet<TruckTireSize> TruckTireSizes { get; set; }

        /// <summary>
        /// 卡车品牌列表
        /// </summary>
        public DbSet<TruckBrand> TruckBrands { get; set; }

        /// <summary>
        /// 轮胎规格查找列表下全部品牌的下拉选项
        /// </summary>
        public DbSet<TireSizeBrand> TireSizeBrands { get; set; }

        /// <summary>
        /// 汽车轮胎列表
        /// </summary>
        public DbSet<CarTireList> CarTireLists { get; set; }

        /// <summary>
        /// 店铺列表
        /// </summary>
        /// <value>The stores.</value>
        public DbSet<StoreTire> StoreTires { get; set; }

        /// <summary>
        /// 用户信息
        /// </summary>
        public DbSet<User> Users { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        public DbSet<CheckCode> CheckCodes { get; set; }

        /// <summary>
        /// 店铺列表
        /// </summary>
        /// <value>The stores.</value>
        //public DbSet<Store> Stores { get; set; }
    }
}
